{%include file="m.index.header.tpl.php"%}
<!--头部 end--> 
<!--主体部分-->
<div class="container" style="margin-top:70px;">
  <div class="row" style="margin-right:10%;">
    <div  class="col-xs-sm  text-right" > <a class="btn btn-primary" href="index.php?a=arrange.hourdayadd" style="width:30%">增加</a></div>
  </div>
  <!--row  end-->
  <div class="row" style="margin-top:10px;">
	<form action="" method="get">	
      <div class="col-sm-12 distance hierarchy" >
        <div class="form-group hierarchy" >
          <label for="" class="col-sm-2 control-label">开始日期:</label>
          <div class="col-sm-10">
            <input type="text" class="form-control" value="{%$start_time%}" id="from" name="start_time">
          </div>
        </div>
      </div>
      <div class="col-sm-12 distance hierarchy" >
        <div class="form-group hierarchy" >
          <label for="" class="col-sm-2 control-label">结束日期:</label>
          <div class="col-sm-10">
           <input type="text" class="form-control" value="{%$end_time%}" id="to" name="end_time">
          </div>
        </div>
      </div>
      <div class="col-xs-12 distance" >
      <div class="form-group  text-center" style="padding-top:0px;">
	  <input type="hidden" name="a" value="arrange.hourdaylist">
      <button type="submit" class="btn btn-success absolutely ">搜索</button>
      </div>
      </div>
    </form>
  </div>
  <div class="row" style="margin-top:15px;margin-left:1px; margin-right:1px;">
    <h4 class="text-center">学校日常工作布置表</h4>
	{%foreach from=$hourday_lists key=key item=value%}
    <table class="table table-striped table-bordered text-center"  id="middles">
      <tr>
        <td>日期</td>
        <td>{%$value.start_time%}</td>
      </tr>
      <tr>
        <td>星期</td>
        <td>{%$value.week%}</td>
      </tr>
      <tr>
        <td>标题</td>
        <td>{%$value.arrange_title%}</td>
      </tr>
      <tr>
        <td>主要内容</td>
        <td>{%$value.arrange_content%}</td>
      </tr>
      <tr>
        <td>负责部门</td>
        <td>
			{%foreach from=$value.department_name key=k item=v%}
			{%$v%}
			{%/foreach%}
			{%$value.arrange_rest%}
		</td>
      </tr>
      <tr>
        <td>备注</td>
        <td> {%$value.arrange_remark%}</td>
      </tr>
      <tr>
        <td>操作</td>
        <td><a type="button" class="btn btn-danger" href="index.php?a=arrange.hourdayupdate&arrange_id={%$value.arrange_id%}">修改</a></td>
      </tr>
      
    </table>
	 {%/foreach%}	
  </div>
</div>
<!--container  end--> 
<!--主体部分  end--> 
<!--底部-->
{%include file="m.index.footer.tpl.php"%} 
<script src="mstatic/js/jquery-ui.js"  type="text/javascript"></script><!--日历--> 
<script>
  $(function() {
    $( "#from" ).datepicker({
		
        changeMonth: true,
        changeYear: true
	  
    });
	
	$( "#to" ).datepicker({
		
        changeMonth: true,
        changeYear: true
	  
    });
	
  });
  </script>
</body>
</html>
